package com.base.cn.platform.os.service.manage.op.advert;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * 广告接口
 * @author ll
 * @create 2018-05-17
 */
@FeignClient(name = BaseService.appName , configuration = FeignAuthConfig.class)
public interface OpAdvertPlaceService extends BaseService {

    /**
     * 添加修改广告位置消息
     * @param advertPlace
     * @return
     */
    @RequestMapping(contextPath + "/op/saveUpdateOpAdvertPlace")
    Map<String,Object> saveUpdateOpAdvertPlace(@RequestBody Map<String, Object> advertPlace);
    /**
     * 获取广告位置全部
     * @return
     */
    @RequestMapping(contextPath + "/op/queryAdvertPlaceList")
    List<Map<String,Object>> queryAdvertPlaceList();


    /**
     * 初始化编辑广告位置页面
     * @param id 数据ID
     * @return
     */
    @RequestMapping(contextPath + "/op/queryAdvertPlaceById")
    Map<String,Object> queryAdvertPlaceById(@RequestParam("id") BigDecimal id);

}
